package com.atguigu.gulimall.ware.dao;

import com.atguigu.gulimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品库存
 * 
 * @author Angel
 * @email 11217304@qq.com
 * @date 2021-07-12 23:14:54
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    /**
     * 根据sku查询库存
     * @param skuId
     * @return
     */
    long getSkuStock(@Param("skuId") Long skuId);
}
